package com.thank.cuttlefish.controller;

import com.thank.cuttlefish.user.api.UserApi;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value="/user")
public class UserController implements UserApi {


    @Override
    public String test() {
        // 添加1/0，方法调用会报错，这时候便会触发熔断器，程序保持正常
//        System.out.println("aaa"+1/0);
        return "你好，这里是spring-cloud-producer响应结果，消息发送成功";
    }
}